package gaogzhen;

import webxml.MobileCodeWSSoap;

import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import java.net.MalformedURLException;
import java.net.URL;

public class MobileClient {
    public static void main(String[] args) throws MalformedURLException {
        URL wsdl = new URL("http://ws.webxml.com.cn/WebServices/MobileCodeWS.asmx?wsdl");
        QName serviceName = new QName("http://WebXml.com.cn/", "MobileCodeWS");
        Service service = Service.create(wsdl, serviceName);
        MobileCodeWSSoap soap = service.getPort(MobileCodeWSSoap.class);
        String info = soap.getMobileCodeInfo("18853810265", null);
        System.out.println(info);
    }
}
